﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VoterInfo.aspx.cs" Inherits="EDMS.VoterInfo"
    MasterPageFile="~/MainMaster.Master" %>

<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script language="javascript" type="text/javascript">
        function OnGridFocusedRowChanged() {
            gvVoter.GetRowValues(gvVoter.GetFocusedRowIndex(), 'sfzh;xmxm;xjbh;cym;sr;sybwtcs;xb;zz;sjhm', OnGetRowValues);
        }

        function OnGetRowValues(values) {
            sfzh.SetText(values[0]);
            xmxm.SetText(values[1]);
            //            xjbh.SetValue(values[2]);
            cym.SetText(values[3]);
            sr.SetText(values[4]);
            //            sybwtcs.SetText(values[5]);
            xb.SetValue(values[6]);
            zz.SetValue(values[7]);
            sjhm.SetText(values[8])
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="MainContent">
    <h1 class="DemoTitle">
        选民信息管理
    </h1>
    <div id="DemoArea">
    </div>
    <div class="Spacer" style="height: 14px;">
    </div>
    <dx:ASPxCallbackPanel ID="CBPanel" ClientInstanceName="QueryPanel" runat="server"
        Width="100%" OnCallback="CBPanel_Callback">
        <PanelCollection>
            <dx:PanelContent>
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="right">
                            选举名称：
                        </td>
                        <td>
                            <dx:ASPxComboBox ID="cmbXjbhz" runat="server" Width="100px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                ValueType="System.String" DataSourceID="SDSXjbh" TextField="Xjmc" ValueField="Xjbh">
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                </LoadingPanelImage>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                            </dx:ASPxComboBox>
                        </td>
                        <td align="right">
                            选民姓名：
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtXmxm" runat="server" Width="100px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                            </dx:ASPxTextBox>
                        </td>
                        <td align="right">
                            身份证号：
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtSfzh" runat="server" Width="100px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                            </dx:ASPxTextBox>
                        </td>
                        <td align="right">
                            手机号码：
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtSjhm" runat="server" Width="100px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                            </dx:ASPxTextBox>
                        </td>
                        <td align="right">
                            性别：
                        </td>
                        <td>
                            <dx:ASPxComboBox ID="cmbXb" runat="server" Width="40px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                <Items>
                                    <dx:ListEditItem Text="男" Value="M" />
                                    <dx:ListEditItem Text="女" Value="F" />
                                </Items>
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                </LoadingPanelImage>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                            </dx:ASPxComboBox>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnCx" runat="server" Text="查询" AutoPostBack="False" UseSubmitBehavior="False"
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                <ClientSideEvents Click="function(s,e){QueryPanel.PerformCallback();}"></ClientSideEvents>
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnQk" runat="server" Text="清空检索条件" AutoPostBack="false" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" OnClick="btnQk_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                            </dx:ASPxButton>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <dx:ASPxButton ID="btnAdd" runat="server" Text="添加选民信息" AutoPostBack="false" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                <ClientSideEvents Click="function(s, e) { pcAddVoter.Show(); }" />
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnEdit" runat="server" Text="修改选民信息" AutoPostBack="false" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                <ClientSideEvents Click="function(s, e) { pcUpdateVoter.Show(); }" />
                            </dx:ASPxButton>
                        </td>
                        <td colspan="10">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="12">
                            <dx:ASPxGridView ID="gvVoter" ClientInstanceName="gvVoter" runat="server" EnableSelection="false"
                                EnableCallBacks="false" Width="100%" AutoGenerateColumns="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                KeyFieldName="sfzh" CssPostfix="Office2010Blue">
                                <SettingsBehavior AllowFocusedRow="True" />
                                <ClientSideEvents FocusedRowChanged="function(s, e) { OnGridFocusedRowChanged(); }" />
                                <Columns>
                                    <dx:GridViewDataComboBoxColumn Caption="选举名称" FieldName="xjbh" Name="t_xjbh" ShowInCustomizationForm="True"
                                        VisibleIndex="0">
                                        <PropertiesComboBox Spacing="0" ValueType="System.String">
                                        </PropertiesComboBox>
                                    </dx:GridViewDataComboBoxColumn>
                                    <dx:GridViewDataTextColumn Caption="选民姓名" FieldName="xmxm" VisibleIndex="2">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="曾用名" FieldName="cym" ShowInCustomizationForm="True"
                                        VisibleIndex="2">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataComboBoxColumn Caption="性别" FieldName="xb" VisibleIndex="3">
                                        <PropertiesComboBox Spacing="0" ValueType="System.String">
                                            <Items>
                                                <dx:ListEditItem Text="男" Value="M" />
                                                <dx:ListEditItem Text="女" Value="F" />
                                            </Items>
                                        </PropertiesComboBox>
                                    </dx:GridViewDataComboBoxColumn>
                                    <dx:GridViewDataTextColumn Caption="身份证号" FieldName="sfzh" VisibleIndex="1" Name="C_Sfzh">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="生日" FieldName="sr" VisibleIndex="5">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="手机号码" FieldName="sjhm" VisibleIndex="6">
                                    </dx:GridViewDataTextColumn>
                                    <%--<dx:GridViewDataComboBoxColumn Caption="委托标记" FieldName="flag" VisibleIndex="7">
                                        <PropertiesComboBox Spacing="0" ValueType="System.String">
                                            <Items>
                                                <dx:ListEditItem Text="Y" Value="Y" />
                                                <dx:ListEditItem Text="N" Value="N" />
                                            </Items>
                                        </PropertiesComboBox>
                                    </dx:GridViewDataComboBoxColumn>--%>
                                    <dx:GridViewDataTextColumn Caption="剩余被委托次数" FieldName="sybwtcs" VisibleIndex="7">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="zz" ShowInCustomizationForm="True" Caption="住址"
                                        VisibleIndex="8">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="操作" VisibleIndex="9">
                                        <DataItemTemplate>
                                            <asp:LinkButton ID="btnDelete" runat="server" CommandArgument='<%#Eval("sfzh") %>'
                                                OnClientClick="return confirm('确定要删除吗？');" OnClick="btnDelete_Click">删除</asp:LinkButton>
                                        </DataItemTemplate>
                                    </dx:GridViewDataTextColumn>
                                </Columns>
                                <SettingsBehavior AllowFocusedRow="True" AllowSelectSingleRowOnly="True" ProcessSelectionChangedOnServer="True" />
                                <SettingsPager PageSize="1000" Visible="False">
                                    <Summary Visible="False" />
                                </SettingsPager>
                                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanelOnStatusBar>
                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanel>
                                </Images>
                                <ImagesFilterControl>
                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanel>
                                </ImagesFilterControl>
                                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                    </Header>
                                    <LoadingPanel ImageSpacing="5px">
                                    </LoadingPanel>
                                </Styles>
                                <StylesPager>
                                    <PageNumber ForeColor="#3E4846">
                                    </PageNumber>
                                    <Summary ForeColor="#1E395B">
                                    </Summary>
                                </StylesPager>
                                <StylesEditors ButtonEditCellSpacing="0">
                                    <ProgressBar Height="21px">
                                    </ProgressBar>
                                </StylesEditors>
                            </dx:ASPxGridView>
                        </td>
                    </tr>
                </table>
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxCallbackPanel>
    <!--新增-->
    <dx:ASPxPopupControl ID="pcAddVoter" runat="server" CloseAction="CloseButton" Modal="True"
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ClientInstanceName="pcAddVoter"
        HeaderText="添加选民信息" AllowDragging="True" EnableAnimation="False" EnableHotTrack="False"
        EnableViewState="False" Width="600px" Height="350px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server">
                <dx:ASPxPanel ID="Panel1" runat="server" DefaultButton="btnOK" Width="600px" Height="350px">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent1" runat="server" Width="600px" Height="350px">
                            <table cellspacing="10px" cellpadding="0" border="0" style="width: 100%">
                                <tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="l1" runat="server" Text="选举编号：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxComboBox ID="cmbXjbh" runat="server" DataSourceID="SDSXjbh" ValueType="System.String"
                                            TextField="Xjmc" ValueField="Xjbh" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <ButtonStyle Width="13px">
                                            </ButtonStyle>
                                        </dx:ASPxComboBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="l2" runat="server" Text="选民姓名：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxTextBox ID="txtXmxmz" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="曾用名：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxTextBox ID="txtCym" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="住址：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxTextBox ID="txtZz" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="l3" runat="server" Text="身份证号：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxTextBox ID="txtSfzhz" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="l4" runat="server" Text="手机号码：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxTextBox ID="txtSjhmz" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <%-- <tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="l6" runat="server" Text="剩余被委托次数：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxTextBox ID="txtSybwtcs" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>--%>
                                <tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="l7" runat="server" Text="性别：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxComboBox ID="cmbXbz" runat="server" ValueType="System.String" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <Items>
                                                <dx:ListEditItem Text="女" Value="F" />
                                                <dx:ListEditItem Text="男" Value="M" />
                                            </Items>
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                        </dx:ASPxComboBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="l8" runat="server" Text="生日：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxDateEdit ID="deSr" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <CalendarProperties>
                                                <HeaderStyle Spacing="1px" />
                                            </CalendarProperties>
                                        </dx:ASPxDateEdit>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <dx:ASPxButton ID="btnOK" runat="server" Width="60px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" OnClick="btnOK_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Text="确定">
                                            <ClientSideEvents Click="function(s, e) { pcAddVoter.Hide(); }" />
                                        </dx:ASPxButton>
                                    </td>
                                    <td>
                                        <dx:ASPxButton ID="btnEsc" runat="server" Text="取消" Width="60px" OnClick="btnEsc_Click"
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <ClientSideEvents Click="function(s, e) { pcAddVoter.Hide(); }" />
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxPanel>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
    <!--修改-->
    <dx:ASPxPopupControl ID="pcUpdateVoter" runat="server" CloseAction="CloseButton"
        Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
        ClientInstanceName="pcUpdateVoter" HeaderText="修改选民信息" AllowDragging="True" EnableAnimation="False"
        EnableHotTrack="False" EnableViewState="False" Width="600px" Height="300px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server">
                <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btnEdit" Width="600px"
                    Height="300px">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent2" runat="server" Width="600px" Height="300px">
                            <table cellspacing="10px" cellpadding="0" border="0" style="width: 100%">
                                <%--<tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text="选举编号：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxComboBox ID="cmbXjbhx" runat="server" DataSourceID="SDSXjbh" ValueType="System.String"
                                            TextField="Xjmc" ValueField="Xjbh" ReadOnly="True" ClientInstanceName="xjbh">
                                        </dx:ASPxComboBox>
                                    </td>
                                </tr>--%>
                                <tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="ASPxLabel7" runat="server" Text="身份证号：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxTextBox ID="txtSfzhx" runat="server" Width="170px" ReadOnly="True" ClientInstanceName="sfzh">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="txtX" runat="server" Text="选民姓名：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxTextBox ID="txtXmxmx" runat="server" Width="170px" ClientInstanceName="xmxm">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="ASPxLabel5" runat="server" Text="曾用名：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxTextBox ID="txtCymx" runat="server" Width="170px" ClientInstanceName="cym">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="ASPxLabel6" runat="server" Text="住址：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxTextBox ID="txtZzx" runat="server" Width="170px" ClientInstanceName="zz">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="ASPxLabel8" runat="server" Text="手机号码：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxTextBox ID="txtSjhmx" runat="server" Width="170px" ClientInstanceName="sjhm">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <%--<tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="ASPxLabel9" runat="server" Text="剩余被委托次数：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxTextBox ID="txtSybwtcsx" runat="server" Width="170px" ClientInstanceName="sybwtcs">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>--%>
                                <tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="ASPxLabel10" runat="server" Text="性别：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxComboBox ID="cmbXbx" runat="server" ValueType="System.String" ClientInstanceName="xb">
                                            <Items>
                                                <dx:ListEditItem Text="女" Value="F" />
                                                <dx:ListEditItem Text="男" Value="M" />
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" width="40%" align="right">
                                        <dx:ASPxLabel ID="ASPxLabel11" runat="server" Text="生日：">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td height="25" width="*" align="left">
                                        <dx:ASPxDateEdit ID="deSrx" runat="server" ClientInstanceName="sr">
                                        </dx:ASPxDateEdit>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <dx:ASPxButton ID="btnXg" runat="server" Width="60px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Text="修改" OnClick="btnXg_Click">
                                            <ClientSideEvents Click="function(s, e) { pcUpdateVoter.Hide(); }" />
                                        </dx:ASPxButton>
                                    </td>
                                    <td>
                                        <dx:ASPxButton ID="btnQx" runat="server" Text="取消" Width="60px" AutoPostBack="false"
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <ClientSideEvents Click="function(s, e) { pcUpdateVoter.Hide(); }" />
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxPanel>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
    <asp:SqlDataSource ID="SDSXjbh" runat="server" ConnectionString="<%$ ConnectionStrings:CMSConnectionString %>"
        SelectCommand="SELECT [xjbh], [xjmc] FROM [Xjdj]"></asp:SqlDataSource>
    <asp:LinqDataSource ID="LDSVoter" runat="server" ContextTypeName="DAL.DataClassesDataContext"
        TableName="Xm" OnSelecting="LDSVoter_Selecting">
    </asp:LinqDataSource>
</asp:Content>
